/*
 * @(#) HealthMeasureType.java Nov 12, 2015
 * Copyright  2015 GPDI. All right reserved.
 */
package blog.sys.entity;

import javax.persistence.*;
import javax.print.DocFlavor;
import javax.swing.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @author xuyubang
 * 用户表
 * @version 1.0 Nov 12, 2015
 */
@Entity
@Table(name = "t_user")
public class User implements Serializable {

    // 编号
    private Integer id;
    // 姓名
    private String name;
    // 昵称
    private String nickName;
    // 个性签名
    private String info;
    // 头像
    private Integer avatar;
    // 手机号
    private String mobile;
    // 密码
    private String password;
    // 性别
    private Integer sex;//1：男 2：女
    // 国家
    private String country;
    // 地区
    private String province;
    // 城市
    private String city;
    // 创建时间
    private Date createTime;
    // 重新注册时间
    private Date updateTime;
    // 生日
    private Date birthDate;
    // 邮箱
    private String email;
    // 类型 普通用户：1 vip: 2
    private Integer type;
    // 状态 用户注销账号1：正常  0：注销
    private Integer status;
    // 是否在线
    private Integer online;
    // 是否激活 0：未激活 1：已激活
    private Integer activation;


    @Id
    @Column(name = "id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Column(name = "create_time")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Column(name = "update_time")
    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Column(name = "name")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Column(name = "nickname")
    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    @Column(name = "info")
    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    @Column(name = "avatar")
    public Integer getAvatar() {
        return avatar;
    }

    public void setAvatar(Integer avatar) {
        this.avatar = avatar;
    }

    @Column(name = "mobile")
    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    @Column(name = "password")
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Column(name = "sex")
    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    @Column(name = "country")
    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    @Column(name = "province")
    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    @Column(name = "city")
    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    @Column(name = "birth_date")
    public Date getBirthDate() {
        return birthDate;
    }

    public void setBirthDate(Date birthDate) {
        this.birthDate = birthDate;
    }

    @Column(name = "email")
    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    @Column(name = "type")
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Column(name = "status")
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Column(name = "online")
    public Integer getOnline() {
        return online;
    }

    public void setOnline(Integer online) {
        this.online = online;
    }

    @Column(name = "activation")
    public Integer getActivation() {
        return activation;
    }

    public void setActivation(Integer activation) {
        this.activation = activation;
    }
}
